import request from './request.js'
const selfServiceCarWash = {
  // 获取自助洗车优惠券列表
  GetBuyDiscountsList(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/GetBuyCardList', data)
  },
  // 提交自助洗车优惠券订单
  AddSelfServiceCarWashDiscountOrder(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/AddSelfServiceCarWashDiscountOrder', data)
  },
  // 支付自助洗车优惠券订单
  selfServiceCarWash(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/PayCardOrder', data)
  },
  // app获取跳转小程序需要的参数
  payAppByXcx(data) {
    return request.post('/api/client/core/', data)
  },
  // 获取离我最近的
  GetSelfServiceCarWashStationList(data) {
    return request.post('/api/client/core/SelfServiceCarWashStation/GetSelfServiceCarWashStationList', data)
  },
  // 获取我去过的
  GetHasBeenToCarWashStationList(data) {
    return request.post('/api/client/core/SelfServiceCarWashStation/GetHasBeenToCarWashStationList', data)
  },
  // 获取洗车机状态
  SetSailGetState(data) {
    return request.get('/api/client/core/SelfServiceCarWashStation/SetSailGetState', {
      params: data
    })
  },
  // 远程控制
  SetSailZhiling(data) {
    return request.get('/api/client/core/SelfServiceCarWashStation/SetSailZhiling', {
      params: data
    })
  },
  // 获取我的首张可用自助洗车会员卡
  GetMyFirstCard() {
    return request.get('/api/client/core/SelfServiceCarWashCard/GetMyFirstCard')
  },
  // 根据ID获取会员卡信息
  GetSelfServiceCarWashCardById(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/GetSelfServiceCarWashCardById', data)
  },
  // 获取当前人正在进行中的洗车订单
  GetMyInProgressOrder() {
    return request.get('/api/client/core/SelfServiceCarWashCard/GetMyInProgressOrder')
  },
  // 获取当前人正在进行中的洗车订单,（如果订单已经在机器上结算，则结算该订单）
  getCheckMyInProgressOrder() {
    return request.post('/api/client/core/SelfServiceCarWashCard/GetCheckMyInProgressOrder')
  },
  // 开始使用自助洗车会员卡
  StartSelfServiceCarWashOrder(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/StartSelfServiceCarWashOrder', data)
  },
  // 结束自助洗车订单
  /* EndUseSelfServiceCarWashOrder(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/EndUseSelfServiceCarWashOrder', data)
  }, */
  // 获取当前人正在使用中的会员卡
  GetMyUsingCar(data) {
    return request.get('/api/client/core/SelfServiceCarWashCard/GetMyUsingCar', data)
  },
  // 获取我的自助洗车会员卡
  GetMyActiveCardList(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/GetMyActiveCardList', data)
  },
  // 添加满意度
  AddSatisfaction(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/AddSatisfaction', data)
  },
  // 添加故障上报
  AddFault(data) {
    return request.post('/api/client/core/SelfServiceCarWashOrderFault/AddFault', data)
  },
  // 获取洗车机相关信息
  GetSelfServiceCarWashMachineInfo(data) {
    return request.post('/api/client/core/SelfServiceCarWashStation/GetSelfServiceCarWashMachineInfo', data)
  },
  // 根据ID获取会员卡可用时间
  GetCardAvailableTimeById(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/GetCardAvailableTimeById', data)
  },
  // 获取自助洗车优惠券列表
  GetBuyCardList(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/GetBuyCardList', data)
  },
  // 洗车机结算
  SetSailJiesuan(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/SetSailJiesuan', data)
  },
  CheckOrderIsFinishFromMachine(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/CheckOrderIsFinishFromMachine', data)
  },
  //验证订单是否已经支付成功
  CheckOrderCardPaid(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/CheckOrderCardPaid', data)
  },
  //根据类型获取自助洗车优惠券列表（福利购新）
  getSelfServiceCarWashCardByTypeList(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/GetSelfServiceCarWashCardByTypeList', data)
  },
  //全自动提交订单
  createOrder(data) {
    return request.post('/api/client/core/OrderHelpWashCar/CreateOrder', data)
  },
  //全自动支付
  payOrder(data) {
    return request.post('/api/client/core/OrderHelpWashCar/PayOrder', data)
  },
  queryOrderStatus(data) {
    return request.post('/api/client/core/OrderHelpWashCar/QueryOrderStatus', data)
  },
  // 检查发放自助洗车卡（B端用户邀请情况）
  CheckRegisterSelfServiceCarWashCard() {
    return request.get('/api/client/core/SelfServiceCarWashCard/CheckRegisterSelfServiceCarWashCard')
  },
  // 发放自助洗车卡（B端用户邀请情况）
  SendRegisterSelfServiceCarWashCard() {
    return request.get('/api/client/core/SelfServiceCarWashCard/SendRegisterSelfServiceCarWashCard')
  },
  // 检查洗车机和订单
  CheckMachineAndOrder(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/CheckMachineAndOrder', data)
  },
  // 根据订单ID获取订单信息
  CheckOrderFinish(data) {
    return request.post('/api/client/core/SelfServiceCarWashCard/CheckOrderFinish',data)
  },
  // 设置B端用户邀请记录
  SetBShare(data) {
    return request.post('/api/client/core/Login/SetBShare',data)
  },
  // 获取赠送的接口详情
  GetMySendCard() {
    return request.get('/api/client/core/Coupon/GetMySendCard')
  },

}

export default selfServiceCarWash